Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Ensure Express doesn't serve index.html for /#271

Open
rajaraodv wants to merge 1 commit intoreactjs:masterfrom
rajaraodv:master
Open

Ensure Express doesn't serve index.html for /#271
rajaraodv wants to merge 1 commit intoreactjs:masterfrom
rajaraodv:master

Conversation

@rajaraodv
Copy link

change
app.use(express.static(path.join(__dirname, 'public')))
to:
app.use(express.static(path.join(__dirname, 'public'), {index: false}))

change 
app.use(express.static(path.join(__dirname, 'public')))
to:
app.use(express.static(path.join(__dirname, 'public'), {index: false}))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant